package chapter2;

/**
 * 三目表达式
 */

public class TernaryOperator {
    public static void main(String[] args) {
        int i = 1;
        int j = 2;
        int k = i>j ? ++i :++j;
        System.out.println(i);
        System.out.println(j);
        System.out.println(k);
    }
}
